package cn.iocoder.yudao.module.system.controller.admin.mini.group.order.service.grouporder;

import cn.iocoder.yudao.module.system.controller.admin.mini.group.order.controller.admin.grouporder.vo.GroupOrderPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.mini.group.order.dal.dataobject.grouporder.GroupOrderDO;
import cn.iocoder.yudao.module.system.controller.admin.mini.group.order.dal.mysql.grouporder.GroupOrderMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;

import java.util.*;
import cn.iocoder.yudao.framework.common.pojo.PageResult;


/**
 * 团购订单 Service 实现类
 *
 * @author 芋道源码
 */
@Service
@Validated
public class GroupOrderServiceImpl implements GroupOrderService {

    @Resource
    private GroupOrderMapper groupOrderMapper;


    @Override
    public GroupOrderDO getGroupOrder(Integer id) {
        return groupOrderMapper.selectById(id);
    }


    @Override
    public PageResult<GroupOrderDO> getGroupOrderPage(GroupOrderPageReqVO pageReqVO) {
        return groupOrderMapper.selectPage(pageReqVO);
    }


}
